package org.springside.examples.showcase.wb.service;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;
import org.springside.examples.showcase.wb.dao.WbSiteJpaDao;
import org.springside.examples.showcase.wb.entity.WbSite;

/**
 * 用户管理类.
 * 
 * @author calvin
 */
// Spring Service Bean的标识.
@Component
@Transactional(readOnly = true)
public class WbSiteManager {
	private static Logger logger = LoggerFactory.getLogger(WbSiteManager.class);
	private WbSiteJpaDao wbsiteJpaDao;

	public List<WbSite> findByScreenName(String Ir_screen_name) {
		List<WbSite> wbsites = wbsiteJpaDao.findByScreenName(Ir_screen_name);
		return wbsites;
	}

	@Autowired
	public void setWbsiteJpaDao(WbSiteJpaDao wbsiteJpaDao) {
		this.wbsiteJpaDao = wbsiteJpaDao;
	}

}
